package com.yuyou.fn.portal.service;

import com.yuyou.fn.common.util.Principals;
import com.yuyou.fn.portal.entity.AdConfig;
import com.yuyou.fn.portal.entity.CourseDisplayConfig;
import com.yuyou.fn.portal.entity.CourseFilterCondConfig;

import java.util.List;

public interface IConfigService {

    AdConfig findAdConfigById(Long adId);

    List<AdConfig> findAdConfigByAreaTeamId(Long areaTeamId );

    List<AdConfig> findAdConfigByAreaTeamIdPagePosition(Long areaTeamId,String page,String position );

    void addAdConfig(Long areaTeamId, String page, String position, String picUrl , String clickUrl , Principals.Principal principal );

    void delAdConfig(Long adId );

    List<CourseDisplayConfig> findCourseDisplayByAreaTeamId(Long areaTeamId );

    CourseDisplayConfig findCourseDisplayConfig(Long areaTeamId);


    void updateCourseDisplayConfig(CourseDisplayConfig courseDisplayConfig, Principals.Principal principal );


    void updateAdConfig(Long adId, String page, String position, String picUrl, String clickUrl, Principals.Principal principal);

    CourseDisplayConfig findCourseDisplayConfigFromCache(Long areaTeamId);


    CourseFilterCondConfig findCourseFilterCondConfigFromCache(Long areaTeamId);

    void updateCourseFilterCondConfig(List<Long> areaTeamIds );

    String findConfigCampusGeoLocation(long userId);


}
